Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/4810 changing textcase on form variable update #4837

Merged

Conversation

robinmolen
Copy link
Contributor

Closes #4810

Changes

The JSON parser on the form variables endpoint now ignores the initial_value field. This ensures that the form variable initial value, and the default value of the component, stay exactly the same.

Checklist

Check off the items that are completed or not relevant.

  • Impact on features

    • Checked copying a form
    • Checked import/export of a form
    • Config checks in the configuration overview admin page
    • Problem detection in the admin email digest is handled
  • Release management

    • I have labelled the PR as "needs-backport" accordingly
  • I have updated the translations assets (you do NOT need to provide translations)

    • Ran ./bin/makemessages_js.sh
    • Ran ./bin/compilemessages_js.sh
  • Commit hygiene

    • Commit messages refer to the relevant Github issue
    • Commit messages explain the "why" of change, not the how

@robinmolen robinmolen requested a review from vaszig November 19, 2024 16:26
@robinmolen robinmolen changed the title Bug/4810 changing textcase with objects api prefill Bug/4810 changing textcase on form variable update Nov 19, 2024
@robinmolen robinmolen added the needs-backport Fix must be backported to stable release branch label Nov 19, 2024
@robinmolen robinmolen force-pushed the bug/4810-changing-textcase-with-objects-api-prefill branch from 16bda26 to cb900c3 Compare November 19, 2024 16:29
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.58%. Comparing base (796bb43) to head (a2c84db).
Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4837   +/-   ##
=======================================
  Coverage   96.58%   96.58%           
=======================================
  Files         748      748           
  Lines       25476    25477    +1     
  Branches     3368     3368           
=======================================
+ Hits        24605    24607    +2     
  Misses        608      608           
+ Partials      263      262    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@robinmolen robinmolen force-pushed the bug/4810-changing-textcase-with-objects-api-prefill branch 2 times, most recently from b2d86fa to ab29881 Compare November 20, 2024 09:25
Copy link
Contributor

@vaszig vaszig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks nice to me, only a couple of remarks (changes are only needed for the type checking if you agree as well)

For future bug fixes, it's nice to have a first commit with the regression test (which should fail) and then a second with the real fix of the bug.

bin/fix_selectboxes_component_default_values.py Outdated Show resolved Hide resolved
src/openforms/forms/tests/variables/test_viewset.py Outdated Show resolved Hide resolved
@robinmolen robinmolen force-pushed the bug/4810-changing-textcase-with-objects-api-prefill branch from ab29881 to a2c84db Compare November 20, 2024 13:53
@robinmolen robinmolen merged commit c38fb7d into master Nov 20, 2024
33 checks passed
@robinmolen robinmolen deleted the bug/4810-changing-textcase-with-objects-api-prefill branch November 20, 2024 15:25
@vaszig
Copy link
Contributor

vaszig commented Nov 20, 2024

Backports:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-backport Fix must be backported to stable release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Case of select boxes values changed when step is never applicable during submission
2 participants